package com.adv.vo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.URL;

public class MessageForm {
	private Integer id;

	@Length(max = 255, message = "最多可以输入255个字符")
	@NotBlank(message = "图标不能为空")
	@URL(message = "图标格式不正确")
	private String icon;

	@Length(max = 255, message = "最多可以输入255个字符")
	@URL(message = "链接格式不正确")
	private String url;

	private Short type;

	private String registertime;

	@Length(max = 255, message = "最多可以输入255个字符")
	@NotBlank(message = "消息描述不能为空")
	private String description;

	private Boolean enable;

	private String extra;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon == null ? null : icon.trim();
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url == null ? null : url.trim();
	}

	public Short getType() {
		return type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	public String getRegistertime() {
		return registertime;
	}

	public void setRegistertime(String registertime) {
		this.registertime = registertime == null ? null : registertime.trim();
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description == null ? null : description.trim();
	}

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra == null ? null : extra.trim();
	}
}